﻿
CKEDITOR.plugins.add('imageupload', {
    icons: 'imageupload',
    init: function (editor) {
        var pluginName = 'imageupload';

        editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
        editor.ui.addButton('ImageUpload', {
            label: '图片上传',
            command: pluginName
        });

        CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/imageupload.js');
    }
});